package com.hzw.saas.service.storage.service;

import com.hzw.saas.api.storage.ICatalogService;
import com.hzw.saas.common.storage.util.StorageKeyUtil;
import org.springframework.stereotype.Service;

/**
 * @author zzl
 * @since 04/24/2021
 */
@Service
public class CatalogServiceImpl implements ICatalogService {

    @Override
    public String getCatalogPath(String catalog) {
        return catalog;
    }

    @Override
    public String getFilePath(String catalog, String fileKey) {
        return StorageKeyUtil.getFilePath(catalog, fileKey);
    }

    @Override
    public String getFileSupPath(String catalog, String fileKey) {
        return StorageKeyUtil.getFileSupPath(catalog, fileKey);
    }

    @Override
    public String getCacheSupPath(String catalog, String fileKey) {
        return StorageKeyUtil.getCacheSupPath(catalog, fileKey);
    }
}
